package com.flag.liutao.modules.role.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.flag.liutao.modules.role.domain.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author godM
 * @since 2022-12-02
 */
@Repository
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getMenuListById(@Param("id") Long id,@Param("type") String type);

    <E extends IPage<Menu>> E getRoleMenuPageById(@Param("id") Long id, E page, @Param("keyword") String keyword);

    List<Menu> getRoleMenuListById(@Param("id")Long  roleId);
}
